package cn.org.xwb.bookmall.admin.vo;

import cn.org.xwb.bookmall.model.constant.ManagerConst;
import cn.org.xwb.common.encrypt.annotation.rsa.RsaDe;
import cn.org.xwb.common.valid.annotation.str.StrMaxLen;
import cn.org.xwb.common.valid.annotation.str.StrNotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class UpdateAuthorityVo {

    @StrNotNull
    @RsaDe
    private String account;

    private Long id;

    @StrNotNull
    @RsaDe
    @StrMaxLen(ManagerConst.AUTHORITY_NAME_MAX_LEN)
    private String name;

    @StrNotNull
    @RsaDe
    @StrMaxLen(ManagerConst.AUTHORITY_CODE_MAX_LEN)
    private String code;

    private Boolean disabled;

    @StrNotNull
    @RsaDe
    @StrMaxLen(ManagerConst.AUTHORITY_DESC_MAX_LEN)
    private String description;

}
